package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同协议
 * </p>
 *
 * @author LX
 * @since 2018-09-17
 */
@TableName("erp_contract")
public class ErpContract extends Model<ErpContract> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 协议名称
     */
    @TableField("con_name")
    private String conName;
    /**
     * 客户编码
     */
    @TableField("con_code")
    private String conCode;
    /**
     * 协议文本
     */
    @TableField("con_text")
    private String conText;
    /**
     * 录入人
     */
    @TableField("con_input")
    private String conInput;
    /**
     * 录入时间
     */
    @TableField("con_date")
    private String conDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getConName() {
        return conName;
    }

    public void setConName(String conName) {
        this.conName = conName;
    }

    public String getConCode() {
        return conCode;
    }

    public void setConCode(String conCode) {
        this.conCode = conCode;
    }

    public String getConText() {
        return conText;
    }

    public void setConText(String conText) {
        this.conText = conText;
    }

    public String getConInput() {
        return conInput;
    }

    public void setConInput(String conInput) {
        this.conInput = conInput;
    }

    public String getConDate() {
        return conDate;
    }

    public void setConDate(String conDate) {
        this.conDate = conDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpContract{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", conName=" + conName +
        ", conCode=" + conCode +
        ", conText=" + conText +
        ", conInput=" + conInput +
        ", conDate=" + conDate +
        "}";
    }
}
